<?php

namespace IMT\AccountBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * IMT\AccountBundle\Entity\AccountType
 *
 * @ORM\Table(name="account_type")
 * @ORM\Entity()
 */
class AccountType
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $title
     *
     * @ORM\Column(name="title", type="string", length=255)
     */
    private $title;
    
    /**
     * @ORM\OneToMany(targetEntity="IMT\AccountBundle\Entity\Account", mappedBy="account_type")
     */
    private $account;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
    }

    /**
     * Get title
     *
     * @return string 
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set account
     *
     * @param IMT\AccountBundle\Entity\Account $account
     */
    public function setAccount(\IMT\AccountBundle\Entity\Account $account)
    {
        $this->account = $account;
    }

    /**
     * Get account
     *
     * @return IMT\AccountBundle\Entity\Account 
     */
    public function getAccount()
    {
        return $this->account;
    }
}